package com.ms.client.task.api.service;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.ms.client.task.api.pojo.ServInfo;
import com.ms.msclient.MsClient;
import com.ms.msclient.MsClientResponse;
import com.system.comm.model.Page;

@MsClient(value="${service.id.task}", defalut="ms-cloud-task")
public interface ApiServInfoService {

	/**
	 * 获取服务列表
	 * @param servInfo
	 * @return
	 */
	@RequestMapping(value = "/api/servInfo/pageQuery")
	public MsClientResponse<Page<ServInfo>> pageQuery(ServInfo servInfo);

	/**
	 * 获取服务列表
	 * @param servInfo
	 * @return
	 */
	@RequestMapping(value = "/api/servInfo/findByStatus")
	public MsClientResponse<ServInfo> findByStatus(@RequestParam("status")Integer status);
}
